import request from '@/utils/request.js'

const url = '/cloud-wkf-service/workspace'
// 查看我的待办
export function getToDoList(data) {
    return request({
        url: url + '/process/toDoList',
        method: 'post',
        data
    })
}

// 列表相关列信息
export const columnInfo = [
    {
        "title":"序号",
        "type":"seq",
        "fixed":"left",
        "align":"center",
        "width":"60"
    },
    {
        "title":"待办名称",
        "field":"processDefinitionName",
        "align":"center",
        "minWidth":"150"
    },
    {
        "title":"申请人",
        "field":"startUser",
        "align":"center",
        "proxyColumn":true,
        "minWidth":"100"
    },
    {
        "title":"当前节点",
        "field":"currentActivityName",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"创建时间",
        "field":"startTime",
        "align":"center",
        "minWidth":"120",
        "formatter": ["formatDateTime"],
    },
    {
        "title":"操作",
        "field":"operate",
        "fixed":"left",
        "align":"center",
        "proxyColumn":true,
        "minWidth":"120px",
        /*"options":[
            {
                "text":true,
                "btnName":"重置密码",
                "type":"primary",
                "icon":"RefreshLeft",
                "method":"showFormDialog"
            },
        ]*/
    }
]
